.class Lcom/htc/android/footprints/activity/ListModeNewActivity$1;
.super Ljava/lang/Object;
.source "ListModeNewActivity.java"

# interfaces
.implements Lcom/htc/widget/TabSwitchHost$TabContentFactory;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/htc/android/footprints/activity/ListModeNewActivity;->onCreate(Landroid/os/Bundle;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation

.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/htc/android/footprints/activity/ListModeNewActivity$1$SimpleSeparable;
    }
.end annotation


# instance fields
.field final synthetic this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;


# direct methods
.method constructor <init>(Lcom/htc/android/footprints/activity/ListModeNewActivity;)V
    .locals 0
    .parameter

    .prologue
    .line 187
    iput-object p1, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$1;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public createTabContent(Ljava/lang/String;)Landroid/view/View;
    .locals 8
    .parameter "arg0"

    .prologue
    const/4 v6, 0x0

    const/4 v7, 0x1

    .line 154
    iget-object v2, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$1;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    invoke-virtual {v2}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->getLayoutInflater()Landroid/view/LayoutInflater;

    move-result-object v1

    .line 155
    .local v1, inflater:Landroid/view/LayoutInflater;
    iget-object v2, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$1;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    #getter for: Lcom/htc/android/footprints/activity/ListModeNewActivity;->listmode:Landroid/view/View;
    invoke-static {v2}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->access$000(Lcom/htc/android/footprints/activity/ListModeNewActivity;)Landroid/view/View;

    move-result-object v2

    if-nez v2, :cond_0

    .line 156
    iget-object v2, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$1;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    const v3, 0x7f030017

    invoke-virtual {v1, v3, v6}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v3

    #setter for: Lcom/htc/android/footprints/activity/ListModeNewActivity;->listmode:Landroid/view/View;
    invoke-static {v2, v3}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->access$002(Lcom/htc/android/footprints/activity/ListModeNewActivity;Landroid/view/View;)Landroid/view/View;

    .line 160
    :cond_0
    iget-object v2, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$1;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    #getter for: Lcom/htc/android/footprints/activity/ListModeNewActivity;->listView:Lcom/htc/widget/HtcListView;
    invoke-static {v2}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->access$100(Lcom/htc/android/footprints/activity/ListModeNewActivity;)Lcom/htc/widget/HtcListView;

    move-result-object v2

    if-nez v2, :cond_2

    .line 161
    iget-object v3, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$1;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    iget-object v2, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$1;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    #getter for: Lcom/htc/android/footprints/activity/ListModeNewActivity;->listmode:Landroid/view/View;
    invoke-static {v2}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->access$000(Lcom/htc/android/footprints/activity/ListModeNewActivity;)Landroid/view/View;

    move-result-object v2

    const v4, 0x102000a

    invoke-virtual {v2, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Lcom/htc/widget/HtcListView;

    #setter for: Lcom/htc/android/footprints/activity/ListModeNewActivity;->listView:Lcom/htc/widget/HtcListView;
    invoke-static {v3, v2}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->access$102(Lcom/htc/android/footprints/activity/ListModeNewActivity;Lcom/htc/widget/HtcListView;)Lcom/htc/widget/HtcListView;

    .line 163
    iget-object v2, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$1;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    #getter for: Lcom/htc/android/footprints/activity/ListModeNewActivity;->mIsPicker:Z
    invoke-static {v2}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->access$200(Lcom/htc/android/footprints/activity/ListModeNewActivity;)Z

    move-result v2

    if-nez v2, :cond_1

    .line 164
    iget-object v2, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$1;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    const/high16 v3, 0x7f03

    iget-object v4, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$1;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    #getter for: Lcom/htc/android/footprints/activity/ListModeNewActivity;->listView:Lcom/htc/widget/HtcListView;
    invoke-static {v4}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->access$100(Lcom/htc/android/footprints/activity/ListModeNewActivity;)Lcom/htc/widget/HtcListView;

    move-result-object v4

    const/4 v5, 0x0

    invoke-virtual {v1, v3, v4, v5}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v3

    #setter for: Lcom/htc/android/footprints/activity/ListModeNewActivity;->mAddNewFootprintView:Landroid/view/View;
    invoke-static {v2, v3}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->access$302(Lcom/htc/android/footprints/activity/ListModeNewActivity;Landroid/view/View;)Landroid/view/View;

    .line 167
    iget-object v2, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$1;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    #getter for: Lcom/htc/android/footprints/activity/ListModeNewActivity;->mAddNewFootprintView:Landroid/view/View;
    invoke-static {v2}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->access$300(Lcom/htc/android/footprints/activity/ListModeNewActivity;)Landroid/view/View;

    move-result-object v2

    new-instance v3, Lcom/htc/android/footprints/activity/ListModeNewActivity$1$SimpleSeparable;

    invoke-direct {v3, p0}, Lcom/htc/android/footprints/activity/ListModeNewActivity$1$SimpleSeparable;-><init>(Lcom/htc/android/footprints/activity/ListModeNewActivity$1;)V

    invoke-virtual {v2, v3}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    .line 168
    iget-object v2, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$1;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    #getter for: Lcom/htc/android/footprints/activity/ListModeNewActivity;->listView:Lcom/htc/widget/HtcListView;
    invoke-static {v2}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->access$100(Lcom/htc/android/footprints/activity/ListModeNewActivity;)Lcom/htc/widget/HtcListView;

    move-result-object v2

    iget-object v3, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$1;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    #getter for: Lcom/htc/android/footprints/activity/ListModeNewActivity;->mAddNewFootprintView:Landroid/view/View;
    invoke-static {v3}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->access$300(Lcom/htc/android/footprints/activity/ListModeNewActivity;)Landroid/view/View;

    move-result-object v3

    invoke-virtual {v2, v3}, Lcom/htc/widget/HtcListView;->addHeaderView(Landroid/view/View;)V

    .line 171
    :cond_1
    iget-object v2, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$1;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    #getter for: Lcom/htc/android/footprints/activity/ListModeNewActivity;->dbManager:Lcom/htc/android/footprints/provider/FootprintManager;
    invoke-static {v2}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->access$500(Lcom/htc/android/footprints/activity/ListModeNewActivity;)Lcom/htc/android/footprints/provider/FootprintManager;

    move-result-object v2

    iget-object v3, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$1;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    #getter for: Lcom/htc/android/footprints/activity/ListModeNewActivity;->sortBy:Ljava/lang/String;
    invoke-static {v3}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->access$400(Lcom/htc/android/footprints/activity/ListModeNewActivity;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v6, v3}, Lcom/htc/android/footprints/provider/FootprintManager;->findFootprintCursorByCategory(Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v0

    .line 173
    .local v0, cursor:Landroid/database/Cursor;
    iget-object v2, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$1;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    new-instance v3, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;

    iget-object v4, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$1;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    iget-object v5, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$1;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    invoke-virtual {v5}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v5

    const v6, 0x7f030016

    invoke-direct {v3, v4, v5, v6, v0}, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;-><init>(Lcom/htc/android/footprints/activity/ListModeNewActivity;Landroid/content/Context;ILandroid/database/Cursor;)V

    iput-object v3, v2, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mAdapter:Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;

    .line 175
    iget-object v2, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$1;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    #getter for: Lcom/htc/android/footprints/activity/ListModeNewActivity;->listView:Lcom/htc/widget/HtcListView;
    invoke-static {v2}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->access$100(Lcom/htc/android/footprints/activity/ListModeNewActivity;)Lcom/htc/widget/HtcListView;

    move-result-object v2

    iget-object v3, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$1;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    iget-object v3, v3, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mAdapter:Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;

    invoke-virtual {v2, v3}, Lcom/htc/widget/HtcListView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 176
    iget-object v2, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$1;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    #getter for: Lcom/htc/android/footprints/activity/ListModeNewActivity;->listView:Lcom/htc/widget/HtcListView;
    invoke-static {v2}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->access$100(Lcom/htc/android/footprints/activity/ListModeNewActivity;)Lcom/htc/widget/HtcListView;

    move-result-object v2

    invoke-virtual {v2, v7}, Lcom/htc/widget/HtcListView;->setClickable(Z)V

    .line 177
    iget-object v2, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$1;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    #getter for: Lcom/htc/android/footprints/activity/ListModeNewActivity;->listView:Lcom/htc/widget/HtcListView;
    invoke-static {v2}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->access$100(Lcom/htc/android/footprints/activity/ListModeNewActivity;)Lcom/htc/widget/HtcListView;

    move-result-object v2

    iget-object v3, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$1;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    iget-object v3, v3, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mAdapter:Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;

    invoke-virtual {v2, v3}, Lcom/htc/widget/HtcListView;->setOnItemClickListener(Lcom/htc/widget/HtcAdapterView$OnItemClickListener;)V

    .line 178
    iget-object v2, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$1;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    #getter for: Lcom/htc/android/footprints/activity/ListModeNewActivity;->listView:Lcom/htc/widget/HtcListView;
    invoke-static {v2}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->access$100(Lcom/htc/android/footprints/activity/ListModeNewActivity;)Lcom/htc/widget/HtcListView;

    move-result-object v2

    iget-object v3, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$1;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    iget-object v3, v3, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mAdapter:Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;

    invoke-virtual {v2, v3}, Lcom/htc/widget/HtcListView;->setOnItemLongClickListener(Lcom/htc/widget/HtcAdapterView$OnItemLongClickListener;)V

    .line 179
    iget-object v2, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$1;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    #getter for: Lcom/htc/android/footprints/activity/ListModeNewActivity;->listView:Lcom/htc/widget/HtcListView;
    invoke-static {v2}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->access$100(Lcom/htc/android/footprints/activity/ListModeNewActivity;)Lcom/htc/widget/HtcListView;

    move-result-object v2

    iget-object v3, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$1;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    iget-object v3, v3, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mAdapter:Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;

    invoke-virtual {v2, v3}, Lcom/htc/widget/HtcListView;->setRecyclerListener(Lcom/htc/widget/HtcAbsListView$RecyclerListener;)V

    .line 180
    iget-object v2, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$1;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    #getter for: Lcom/htc/android/footprints/activity/ListModeNewActivity;->listView:Lcom/htc/widget/HtcListView;
    invoke-static {v2}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->access$100(Lcom/htc/android/footprints/activity/ListModeNewActivity;)Lcom/htc/widget/HtcListView;

    move-result-object v2

    invoke-virtual {v2, v7}, Lcom/htc/widget/HtcListView;->setFastScrollEnabled(Z)V

    .line 181
    iget-object v2, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$1;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    iget-object v3, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$1;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    iget-object v3, v3, Lcom/htc/android/footprints/activity/ListModeNewActivity;->mAdapter:Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;

    invoke-virtual {v3}, Lcom/htc/android/footprints/activity/ListModeNewActivity$ListModeAdapter;->getFilter()Landroid/widget/Filter;

    move-result-object v3

    #setter for: Lcom/htc/android/footprints/activity/ListModeNewActivity;->mFilter:Landroid/widget/Filter;
    invoke-static {v2, v3}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->access$602(Lcom/htc/android/footprints/activity/ListModeNewActivity;Landroid/widget/Filter;)Landroid/widget/Filter;

    .line 184
    .end local v0           #cursor:Landroid/database/Cursor;
    :cond_2
    iget-object v2, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$1;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    #getter for: Lcom/htc/android/footprints/activity/ListModeNewActivity;->listmode:Landroid/view/View;
    invoke-static {v2}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->access$000(Lcom/htc/android/footprints/activity/ListModeNewActivity;)Landroid/view/View;

    move-result-object v2

    return-object v2
.end method
